package com.yt.service;

import com.yt.entity.User;
import com.yt.util.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

/**
 * @Classname GetInfoFeign
 * @Description
 * @Date 2021/10/20 19:34
 * @Create by 杨涛
 */
@Component
@FeignClient("CLOUD-PAY-SERVICE")
public interface GetInfoFeign {

    @RequestMapping("/getinfo")
    public String getinfo() ;
    @RequestMapping("/getjsonusers")
    public CommonResult<List<User>> getJsonUsers();
    @RequestMapping("/timeout")
    public String feigntimeout();
}
